package com.junyue.control.platform.utils;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import javax.servlet.http.HttpServletRequest;

public class ReadParamters
{
    public static String getParm(HttpServletRequest request)
    {
        StringBuilder sb = new StringBuilder();
        BufferedReader br = null;
        String line = null;
        try
        {
            br = new BufferedReader(new InputStreamReader(request.getInputStream(), "UTF-8"));
            while ((line = br.readLine()) != null) {
                sb.append(line);
            }
        }
        catch (IOException e)
        {
            e.printStackTrace();
        }
        return sb.toString();
    }
}
